import { createApp } from 'vue'
import App from '@/App.vue'
import router from '@/router'
import vuex from '@/store/vuex/index.js'
import { createPinia } from 'pinia'
import elementPlus from './plugins/element-plus'
// 全局样式
import '@/styles/index.scss'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
const pinia = createPinia()

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(router)
app.use(vuex)
app.use(pinia)
app.use(elementPlus)

app.mount('#app')

console.log(import.meta.env)
